import Layout from '../components/Layout'
import '../assets/iconfont/iconfont.js' // 引入阿里巴巴图标库js
import '../assets/iconfont/iconfont.css'// 引入阿里巴巴图标库css

let routers = [{
    path: '/',
    component: Layout,
    redirect: '/index',
    children: [
        {
            path: 'index',
            component: () => import('../views/index'),
        },
    ]
},
{
    path: '/',
    component: Layout,
    children: [
        {
            path: 'details',
            component: () => import('../views/details'),
        },
        {
            path: 'cart',
            component: () => import('../views/cart'),
        },
        {
            path: 'myOrder',
            component: () => import('../views/myOrder'),
        },
        {
            path: 'myInfo',
            component: () => import('../views/myInfo'),
        },
        {
            path: 'success',
            component: () => import('../views/success')
        }
    ]
},

{
    path: '/pay',
    component: () => import('../views/pay'),
},
{
    path: '/login',
    component: () => import('../views/login'),
},
{
    path: '/register',
    component: () => import('../views/register'),
},
]
export default routers